/*   1:    */ package org.jetbrains.jps.model.impl;
/*   2:    */ 
/*   3:    */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jps.model.*;
import org.jetbrains.jps.model.library.JpsLibraryReference;
import org.jetbrains.jps.model.library.JpsLibraryType;
import org.jetbrains.jps.model.library.JpsTypedLibrary;
import org.jetbrains.jps.model.library.impl.JpsLibraryImpl;
import org.jetbrains.jps.model.library.impl.JpsLibraryReferenceImpl;
import org.jetbrains.jps.model.library.impl.JpsSdkReferenceImpl;
import org.jetbrains.jps.model.library.impl.sdk.JpsSdkImpl;
import org.jetbrains.jps.model.library.sdk.JpsSdk;
import org.jetbrains.jps.model.library.sdk.JpsSdkReference;
import org.jetbrains.jps.model.library.sdk.JpsSdkType;
import org.jetbrains.jps.model.module.*;
import org.jetbrains.jps.model.module.impl.JpsModuleImpl;
import org.jetbrains.jps.model.module.impl.JpsModuleReferenceImpl;
import org.jetbrains.jps.model.module.impl.JpsModuleSourceRootImpl;

/*   4:    */
/*   5:    */
/*   6:    */
/*   7:    */
/*   8:    */
/*   9:    */
/*  10:    */
/*  11:    */
/*  12:    */
/*  13:    */
/*  14:    */
/*  15:    */
/*  16:    */
/*  17:    */
/*  18:    */
/*  19:    */
/*  20:    */
/*  21:    */
/*  22:    */
/*  23:    */
/*  24:    */
/*  25:    */
/*  26:    */
/*  27:    */
/*  28:    */
/*  29:    */
/*  30:    */
/*  31:    */
/*  32:    */
/*  33:    */ 
/*  34:    */ public class JpsElementFactoryImpl
/*  35:    */   extends JpsElementFactory
/*  36:    */ {
/*  37:    */   public JpsModel createModel()
/*  38:    */   {
/*  39: 42 */     new JpsModelImpl(new JpsEventDispatcherBase()
/*  40:    */     {
/*  41:    */       public void fireElementRenamed(@NotNull JpsNamedElement paramAnonymousJpsNamedElement, @NotNull String paramAnonymousString1, @NotNull String paramAnonymousString2)
/*  42:    */       {
/*  43: 45 */         if (paramAnonymousJpsNamedElement == null) {
/*  44: 45 */           throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl$1", "fireElementRenamed" }));
/*  45:    */         }
/*  46: 45 */         if (paramAnonymousString1 == null) {
/*  47: 45 */           throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl$1", "fireElementRenamed" }));
/*  48:    */         }
/*  49: 45 */         if (paramAnonymousString2 == null) {
/*  50: 45 */           throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "2", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl$1", "fireElementRenamed" }));
/*  51:    */         }
/*  52:    */       }
/*  53:    */       
/*  54:    */       public void fireElementChanged(@NotNull JpsElement paramAnonymousJpsElement)
/*  55:    */       {
/*  56: 49 */         if (paramAnonymousJpsElement == null) {
/*  57: 49 */           throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl$1", "fireElementChanged" }));
/*  58:    */         }
/*  59:    */       }
/*  60:    */     });
/*  61:    */   }
/*  62:    */   
/*  63:    */   public <P extends JpsElement> JpsModule createModule(@NotNull String paramString, @NotNull JpsModuleType<P> paramJpsModuleType, @NotNull P paramP)
/*  64:    */   {
/*  65: 55 */     if (paramString == null) {
/*  66: 55 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createModule" }));
/*  67:    */     }
/*  68: 55 */     if (paramJpsModuleType == null) {
/*  69: 55 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createModule" }));
/*  70:    */     }
/*  71: 55 */     if (paramP == null) {
/*  72: 55 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "2", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createModule" }));
/*  73:    */     }
/*  74: 55 */     return new JpsModuleImpl(paramJpsModuleType, paramString, paramP);
/*  75:    */   }
/*  76:    */   
/*  77:    */   public <P extends JpsElement> JpsTypedLibrary<P> createLibrary(@NotNull String paramString, @NotNull JpsLibraryType<P> paramJpsLibraryType, @NotNull P paramP)
/*  78:    */   {
/*  79: 63 */     if (paramString == null) {
/*  80: 63 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createLibrary" }));
/*  81:    */     }
/*  82: 63 */     if (paramJpsLibraryType == null) {
/*  83: 63 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createLibrary" }));
/*  84:    */     }
/*  85: 63 */     if (paramP == null) {
/*  86: 63 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "2", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createLibrary" }));
/*  87:    */     }
/*  88: 63 */     return new JpsLibraryImpl(paramString, paramJpsLibraryType, paramP);
/*  89:    */   }
/*  90:    */   
/*  91:    */   public <P extends JpsElement> JpsTypedLibrary<JpsSdk<P>> createSdk(@NotNull String paramString1, @Nullable String paramString2, @Nullable String paramString3, @NotNull JpsSdkType<P> paramJpsSdkType, @NotNull P paramP)
/*  92:    */   {
/*  93: 70 */     if (paramString1 == null) {
/*  94: 70 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createSdk" }));
/*  95:    */     }
/*  96: 70 */     if (paramJpsSdkType == null) {
/*  97: 70 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "3", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createSdk" }));
/*  98:    */     }
/*  99: 70 */     if (paramP == null) {
/* 100: 70 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "4", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createSdk" }));
/* 101:    */     }
/* 102: 70 */     return createLibrary(paramString1, paramJpsSdkType, new JpsSdkImpl(paramString2, paramString3, paramJpsSdkType, paramP));
/* 103:    */   }
/* 104:    */   
/* 105:    */   @NotNull
/* 106:    */   public <P extends JpsElement> JpsModuleSourceRoot createModuleSourceRoot(@NotNull String paramString, @NotNull JpsModuleSourceRootType<P> paramJpsModuleSourceRootType, @NotNull P paramP)
/* 107:    */   {
/* 108: 78 */     if (paramString == null) {
/* 109: 78 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createModuleSourceRoot" }));
/* 110:    */     }
/* 111: 78 */     if (paramJpsModuleSourceRootType == null) {
/* 112: 78 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createModuleSourceRoot" }));
/* 113:    */     }
/* 114: 78 */     if (paramP == null) {
/* 115: 78 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "2", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createModuleSourceRoot" }));
/* 116:    */     }
/* 117: 78 */     void tmp130_127 = new JpsModuleSourceRootImpl(paramString, paramJpsModuleSourceRootType, paramP);
/* 118: 78 */     if (tmp130_127 == null) {
/* 119: 78 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createModuleSourceRoot" }));
/* 120:    */     }
/* 121: 78 */     return tmp130_127;
/* 122:    */   }
/* 123:    */   
/* 124:    */   @NotNull
/* 125:    */   public JpsModuleReference createModuleReference(@NotNull String paramString)
/* 126:    */   {
/* 127: 84 */     if (paramString == null) {
/* 128: 84 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createModuleReference" }));
/* 129:    */     }
/* 130: 84 */     void tmp48_45 = new JpsModuleReferenceImpl(paramString);
/* 131: 84 */     if (tmp48_45 == null) {
/* 132: 84 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createModuleReference" }));
/* 133:    */     }
/* 134: 84 */     return tmp48_45;
/* 135:    */   }
/* 136:    */   
/* 137:    */   @NotNull
/* 138:    */   public JpsLibraryReference createLibraryReference(@NotNull String paramString, @NotNull JpsElementReference<? extends JpsCompositeElement> paramJpsElementReference)
/* 139:    */   {
/* 140: 91 */     if (paramString == null) {
/* 141: 91 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createLibraryReference" }));
/* 142:    */     }
/* 143: 91 */     if (paramJpsElementReference == null) {
/* 144: 91 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createLibraryReference" }));
/* 145:    */     }
/* 146: 91 */     void tmp89_86 = new JpsLibraryReferenceImpl(paramString, paramJpsElementReference);
/* 147: 91 */     if (tmp89_86 == null) {
/* 148: 91 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createLibraryReference" }));
/* 149:    */     }
/* 150: 91 */     return tmp89_86;
/* 151:    */   }
/* 152:    */   
/* 153:    */   @NotNull
/* 154:    */   public <P extends JpsElement> JpsSdkReference<P> createSdkReference(@NotNull String paramString, @NotNull JpsSdkType<P> paramJpsSdkType)
/* 155:    */   {
/* 156: 97 */     if (paramString == null) {
/* 157: 97 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createSdkReference" }));
/* 158:    */     }
/* 159: 97 */     if (paramJpsSdkType == null) {
/* 160: 97 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createSdkReference" }));
/* 161:    */     }
/* 162: 97 */     void tmp93_90 = new JpsSdkReferenceImpl(paramString, paramJpsSdkType, createGlobalReference());
/* 163: 97 */     if (tmp93_90 == null) {
/* 164: 97 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createSdkReference" }));
/* 165:    */     }
/* 166: 97 */     return tmp93_90;
/* 167:    */   }
/* 168:    */   
/* 169:    */   @NotNull
/* 170:    */   public JpsElementReference<JpsProject> createProjectReference()
/* 171:    */   {
/* 172:103 */     void tmp7_4 = new JpsProjectElementReference();
/* 173:103 */     if (tmp7_4 == null) {
/* 174:103 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createProjectReference" }));
/* 175:    */     }
/* 176:103 */     return tmp7_4;
/* 177:    */   }
/* 178:    */   
/* 179:    */   @NotNull
/* 180:    */   public JpsElementReference<JpsGlobal> createGlobalReference()
/* 181:    */   {
/* 182:109 */     void tmp7_4 = new JpsGlobalElementReference();
/* 183:109 */     if (tmp7_4 == null) {
/* 184:109 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createGlobalReference" }));
/* 185:    */     }
/* 186:109 */     return tmp7_4;
/* 187:    */   }
/* 188:    */   
/* 189:    */   @NotNull
/* 190:    */   public JpsDummyElement createDummyElement()
/* 191:    */   {
/* 192:115 */     void tmp7_4 = new JpsDummyElementImpl();
/* 193:115 */     if (tmp7_4 == null) {
/* 194:115 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createDummyElement" }));
/* 195:    */     }
/* 196:115 */     return tmp7_4;
/* 197:    */   }
/* 198:    */   
/* 199:    */   @NotNull
/* 200:    */   public <D> JpsSimpleElement<D> createSimpleElement(@NotNull D paramD)
/* 201:    */   {
/* 202:121 */     if (paramD == null) {
/* 203:121 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createSimpleElement" }));
/* 204:    */     }
/* 205:121 */     void tmp48_45 = new JpsSimpleElementImpl(paramD);
/* 206:121 */     if (tmp48_45 == null) {
/* 207:121 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsElementFactoryImpl", "createSimpleElement" }));
/* 208:    */     }
/* 209:121 */     return tmp48_45;
/* 210:    */   }
/* 211:    */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.impl.JpsElementFactoryImpl

 * JD-Core Version:    0.7.0.1

 */